Introducing Regular Expressions by Jörg Krause

Introducing Regular Expressions by Jörg Krause

Author:Jörg Krause
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


© Jörg Krause 2017

Jörg KrauseIntroducing Regular Expressions10.1007/978-1-4842-2508-0_3

3. The JavaScript Functions

Jörg Krause1

(1)Berlin, Germany

JavaScript provides an object named RegExp. You can create an instance by using new or the literal //.

The RegExp Object

I’ll start with an overview and follow it with several examples.

Methods

Apart from the RegExp object, you can use several built-in string functions in JavaScript to deal with regular expressions. The object knows these methods: exec(): Executes the test and returns the first hit.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.